<template>
  <div class="mine-container">
    <img :src="url" alt="">
  </div>
</template>

<script>
import { string } from 'jszip/lib/support'
export default {
  name: 'picView',
  data() {
   return{
     url:localStorage.getItem('imgurl')
   }
  },
  computed: {
  },
  created() {
   this.getParams()
  },
  mounted() {
    // this.formRef.clearValidate()
  },
  watch: {
    $route(to, from) {
      console.log(from.path)// 从哪来
      console.log(to.path)// 到哪去
    }
  },
  methods: {
      getParams() {
      // 取到路由带过来的参数
      const routerParams = this.$route.params.url;
     }
  },
  destroyed () {
    localStorage.removeItem('imgurl')
  }
}
</script>
<style lang="scss" scoped>
.mine-container{
  width: 100%;
  background: rgb(241, 241, 241);
  text-align: center;
  img{
    // width:100%;
  }
}
</style>
